package org.synclib.example.addressbook;

import java.util.Arrays;
import java.util.List;

import org.synclib.model.SyncableObject;

public class Contact extends SyncableObject {

	public Contact() {
	}
	
	public Contact(String uuid, long lastModified) {
		super(uuid, lastModified);
	}
	
	public String getFirstName() {
		return (String) getProperty("firstName");
	}

	public void setFirstName(String firstName) {
		setProperty("firstName", firstName);
	}

	public String getLastName() {
		return (String) getProperty("lastName");
	}

	public void setLastName(String lastName) {
		setProperty("lastName", lastName);
	}

	@Override
	public List<String> getSyncableProperties() {
		return Arrays.asList("firstName", "lastName");
	}

}
